<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@ include file="/common/taglibs.jsp"%>
<link rel="stylesheet" type="text/css" href="${ctx}/styles/pop.css" media="screen"/>
<script type="text/javascript" src="${ctx}/scripts/jquery/jquery.form.js"></script>
<div class="pop_roster_request">
	<form id="f_wish_reply" action="<c:url value='/wish/reply.do'/>" method="post">
		<input type="hidden" name="wid" value="${wid}">
		祝福(200字以内)：<textarea name="content" cols="50" rows="10"></textarea>
		<br/>
		<button type="submit" class="btn3" >祝福</button>
	</form>
</div>
<script>
$("#f_wish_reply").ajaxForm({
	dataType:'xml', 
	type:'post',
	success: processWishReplyResult
});
function processWishReplyResult(result){
	if($(result).find('result').text().toUpperCase().indexOf("TRUE") >= 0){
		var wid = $(result).find('content').text();
		showWish(${wid});
		$.fn.colorbox.close();
	}else{
		alert("愿望女神正在休息，请稍等在许愿！");
	}
}
</script>